package ink.tiptop.constant;

/**
 * @author ink.tiptop.zjf
 * @Title: Ticket
 * @Package ink.tiptop.common.cmd
 * @Description:
 * @date 2020-07-22 21:46
 */
public class Cmd {
    /**
     * 搜索命令
     */
    public static final String FIND = "find %s -name %s";
    /**
     * 启动/停止命令
     */
    public static final String RE_START = "source /etc/profile;sh %s";

    public static final String INSTALL = "java -Dmaven.multiModuleProjectDirectory=" +
            "%s" +  // 项目路径 pom.xml上级
            " -Dmaven.home=" +
            "%s" + // maven home 1
            " -Dclassworlds.conf=" +
            "%s" + // maven home 2
            "/bin/m2.conf  -Dfile.encoding=UTF-8 -classpath " +
            "%s" + // maven home 3
            "/boot/plexus-classworlds-2.5.2.jar org.codehaus.classworlds.Launcher -DskipTests=true install -P " +
            "%s"; // 这个是 idea右上角的profiles

    //"C:\Program Files (x86)\Java\jdk1.8.0_144\bin\java"
    // -Dmaven.multiModuleProjectDirectory=E:\project\java\kunshan-trunk\bts-manage\bts-report-app
    // "-Dmaven.home=D:\IntelliJ IDEA 2017.3\plugins\maven\lib\maven3"
    // "-Dclassworlds.conf=D:\IntelliJ IDEA 2017.3\plugins\maven\lib\maven3\bin\m2.conf"
    // "-javaagent:D:\IntelliJ IDEA 2017.3\lib\idea_rt.jar=63957:D:\IntelliJ IDEA 2017.3\bin"
    // -Dfile.encoding=UTF-8 -classpath
    // "D:\IntelliJ IDEA 2017.3\plugins\maven\lib\maven3\boot\plexus-classworlds-2.5.2.jar"
    // org.codehaus.classworlds.Launcher -Didea.version=2017.3 -s C:\Users\liudong\.m2\settings.xml
    // -Dmaven.repo.local=C:\Users\liudong\.m2\repository
    // -DskipTests=true clean install -P majortest,nexus,!dev
}
